package com.chb.prototype.shallow;

/**
 * @author chihb
 * @create-time 2024/10/23 15:08
 * @description
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student student = new Student();
        student.setName("chihb");
        student.setAge(18);
        student.setScore(90.5);
        Student studentClone = student.clone();
        System.out.println(student);
        System.out.println(studentClone);
        System.out.print("是否是同一个对象：");
        System.out.print(student == studentClone);
    }
}
